/** Created by CUIJA on 05-19-2017.*/


module.exports = function ($stateProvider) {
  $stateProvider.state({
      name: 'default',
      url: '',
      template: require('../foods/foods.html'),
      controller:'foodsController'
    }).state({
      name: 'foodlist',
      url: '/foodlist',
      template: require('../foods/foods.html'),
      controller:'foodsController'
    }).state({
      name: 'upFood',
      url: '/upFood/:foodid',
      template: require('../foods/upFood.html'),
      controller:'upFoodController'
    })
    .state({
      name: 'upFood1',
      url: '/upFood',
      template: require('../foods/upFood.html'),
      controller:'upFoodController'
    })
    .state({
      name: 'addFood',
      url: '/addFood',
      template: require('../foods/addFood.html'),
       controller: 'addFoodController'
    })
    .state({
      name: 'orderlist',
      url: '/orderlist',
      template: require('../orders/orders.html'),
      controller: 'ordersController'
    })
    .state({
      name: 'unreceivedOrders',
      url: '/unreceivedOrders',
      template: require('../orders/unreceivedOrders.html'),
      controller: 'unreceivedOrdersController'
    })
    .state({
      name: 'receivedOrders',
      url: '/receivedOrders',
      template: require('../orders/receivedOrders.html'),
      controller: 'receivedOrdersController'
    })
    .state({
      name: 'refusedOrders',
      url: '/refusedOrders',
      template: require('../orders/refusedOrders.html'),
      controller: 'refusedOrdersController'
    })
    .state({
      name: 'deliveringOrders',
      url: '/deliveringOrders',
      template: require('../orders/deliveringOrders.html'),
      controller: 'deliveringOrdersController'
    })
    .state({
      name: 'finishedOrders',
      url: '/finishedOrders',
      template: require('../orders/finishedOrders.html'),
      controller: 'finishedOrdersController'
    })
    .state({
      name:'getFoodAdByMerchant',
      url: '/foodAd',
      template: require('../foodAd/foodAd.html'),
      controller: 'foodAdController'
    })
    .state({
      name:'getPassedFoodAdByMerchant',
      url: '/passedFoodAd',
      template: require('../foodAd/passedfoodAd.html'),
      controller: 'foodAdController'
    })
    .state({
      name:'getUnpassedFoodAdByMerchant',
      url: '/unpassedFoodAd',
      template: require('../foodAd/unpassedfoodAd.html'),
      controller: 'foodAdController'
    }) ;
      
};